<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="content" name="content"   type="hidden">
						<input id="id" name="id" th:value="${news.id}"  type="hidden">
							<div class="form-group">	
								<label class="col-sm-2 control-label">栏目：</label>
								<div class="col-sm-9">
									<select id="typeId" name="typeId" class="form-control" th:field="*{news.typeId}">
                                        <option th:each="category:${list}" th:value="${category.id}" th:text="${category.name}"></option>
                                    </select>
								</div>
							</div>
							<div class="form-group">	
								<label class="col-sm-2 control-label">标题：</label>
								<div class="col-sm-9">
									<input id="title" name="title" th:value="${news.title}" class="form-control" type="text">
								</div>
							</div>
							
							<div class="form-group">	
								<label class="col-sm-2 control-label">来源：</label>
								<div class="col-sm-9">
									<input id="from" name="from" th:value="${news.from}" class="form-control" type="text">
								</div>
							</div>
							
							<div class="form-group">
                                <label class="col-sm-2 control-label">图片(尺寸建议:420*300)：</label>
                                <div class="row">
                                    <div class="col-sm-9" id="logImg">
                                        <input type="hidden" name="img" th:value="${news.img}"/>
                                        <div class="col-sm-2 col-md-3 resourceImg" >
                                            <div class="thumbnail">
                                                <img class="imgUrl" data-toggle="tooltip"  imgName=""  th:src="${news.img}">
                                            </div>
                                        </div>
                                        <button type="button" class="layui-btn uploadImg">
                                            <i class="fa fa-cloud"></i>上传
                                        </button>
                                    </div>
                                </div>
                            </div>
                            
														<div class="form-group">	
								<label class="col-sm-2 control-label">内容：</label>
								<div class="col-sm-9">
									
									<input type="hidden" name="memoTemp" th:value="${news.content}"/>
                                   <script type="text/plain" id="memo" name="memo" style="width:100%;height:500px;"></script>
								</div>
							</div>
							
							
																					<div class="form-group">
								<div class="col-sm-9 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<link th:href="@{/ueditor/themes/default/css/ueditor.css}" rel="stylesheet" type="text/css"/>
	<script th:src="@{/ueditor/ueditor.config.js}"></script>
    <script th:src="@{/ueditor/ueditor.all.js}"></script>
    
    
	<script type="text/javascript" src="/js/appjs/invest/news/edit.js"  th:src="@{/js/appjs/invest/news/edit.js}"></script>
	<script type="text/javascript" th:src="@{/js/upload.js}"></script>
	</script>
</body>
</html>
